package com.cloud.workTest;

import java.io.*;

public class CsvFileTest {
    public static void main(String[] args) throws Exception {
        FileReader file = new FileReader("f://beta_query_data_10000w.csv");
        BufferedReader buffer = new BufferedReader(file);

        FileWriter toFile = new FileWriter("f://beta_query_data_100w.csv");
        BufferedWriter writer = new BufferedWriter(toFile);
        writer.append(buffer.readLine());
        writer.append("\n");
        for (int i = 0; i < 1000000; i++) {
            writer.append(buffer.readLine());
            writer.append("\n");
        }

        writer.close();
        buffer.close();
    }
}
